package com.guli.edu.service;

import com.guli.edu.entity.EduChapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guli.edu.entity.dto.ChapterDto;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author Daniel
 * @since 2019-03-29
 */
public interface EduChapterService extends IService<EduChapter> {

    /***
     *
     *
     * @param courseId
     * @return
     */
    List<ChapterDto> getAllChapterVideo(String courseId);

    boolean removeChapterId(String chapterId);

    /***
     * 根据课程id删除所有的章节
     * @param id
     */
    void removeByCourseId(String id);
}
